<?php
class Account_Form_Account_UpdatePassword extends Zend_Form
{

	public function __construct(Zend_Controller_Action $controller, $object)
	{
		$account_username = $this->CreateElement ( 'text', 'account_username' )->setLabel ( 'Tài khoản' )->setAttrib ( "class", "lock" )->setValue ( $object->account_username );
		
		$account_password = $this->CreateElement ( 'password', 'account_password' )->setLabel ( 'Mật khẩu mới' )->setRequired ( true );
		
		$account_repassword = $this->CreateElement ( 'password', 'account_repassword' )->setLabel ( 'Nhập lại mật khẩu mới' )->setRequired ( true );
		
		$this->addElements ( array (
			$account_username, $account_password, $account_repassword 
		) );
		
		$controller->getHelper ( 'common' )->form ( $this );
	}

} 